package util

/**
 * @File : time.go
 * @Description : 时间相关函数
 * @Author : chen
 * @Date : 2024/4/18
 */

var monthMap = map[string]int{
	"January": 1,
	"February": 2,
	"March": 3,
	"April": 4,
	"May": 5,
	"June": 6,
	"July": 7,
	"August": 8,
	"September": 9,
	"October": 10,
	"November": 11,
	"December": 12,

	"Jan": 1,
	"Feb": 2,
	"Mar": 3,
	"Apr": 4,
	"Jun": 6,
	"Jul": 7,
	"Aug": 8,
	"Sep": 9,
	"Sept": 9,
	"Oct": 10,
	"Nov": 11,
	"Dec": 12,
}

func MonthStrToNum(Month string) (int) {
	return monthMap[Month]
}